{extend name='user/public/layout' /}
{block name='content'}
<style>
    .but18{margin:0 0 0 150px;color:#fff;cursor:pointer;}
</style>
<div class="overflow_h">
    <div class="screen">
        <div class="screen_box01 overflow_h">
            <ul>
                <li><a href="{:url('user.account/suggest')}" class="on">意见反馈</a></li>
                <li><a href="{:url('user.account/suggestlist')}">反馈列表</a></li>
            </ul>
        </div>
    </div>
    <div class="user-nav">
        <form action="{:url('user.account/suggestDo')}" id="info_form" onsubmit="return check();" method="post">
            <div class="mailBox" style="width: 90%;height:auto;padding: 6px 17px 2px;">
                <ul class="formList width4">
                    <li class="fhyj">
                        <p><span class="blue">{$userInfo.username}</span> 您好!</p>
                        <p>请留下您的宝贵意见或建议</p>
                        <p>联系方式（必填）</p>
                    </li>
                    <li><label>手机号：</label><input type="text" name="phone" value="{$userInfo.mobile}" class="inputStyle" style="border: 1px solid #ccc;"></li>
                    <li><label>或邮箱：</label><input type="text" name="email" class="inputStyle" value="{$userInfo.email}" style="border: 1px solid #ccc;"></li>
                    <li style="height: 111px;"><label>反馈内容：</label>
                        <textarea name="info" id="info" style="width: 400px;height: 100px;border: 1px #ccc solid"></textarea>
                    </li>
                    <li>
                        <label></label>
                        <input type="submit" class="btnStyle" style="float: left" value="提交" id="submitBtn">
                        <span style="display: none; max-width: 200px;" class="err" id="epass"></span>
                    </li>
                </ul>
            </div>
        </form>

    </div>
</div>
<script>
    function check(){
        var  info = $('#info').val();
        if(info.length == 0){
            alert('请填写反馈内容！');
            return false;
        }
        return true;
    }
</script>
{/block}